package client;

import java.awt.EventQueue;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JPasswordField;
import java.awt.Font;

public class Login {
	
	private JFrame frame;
	private JTextField textFieldName;
	private JTextField textFieldSurname;
	private JTextField textFieldRegisterEmail;
	private JTextField textField_EMailLogin;
	private JPasswordField passwordFieldLogin;
	private JPasswordField passwordFieldRegister;
	private JPasswordField passwordFieldConfirm;
	

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					Login window = new Login();
					window.frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the application.
	 */
	public Login() {
		initialize();
	}

	
	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		frame = new JFrame();
		frame.setBounds(100, 100, 712, 475);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.getContentPane().setLayout(null);
		
		JButton btnLogin = new JButton("Login");
		btnLogin.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
			}
		});
		btnLogin.setBounds(73, 215, 65, 23);
		frame.getContentPane().add(btnLogin);
		
		JButton btnNewPassword = new JButton("new password");
		btnNewPassword.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
			}
		});
		btnNewPassword.setBounds(150, 215, 126, 23);
		frame.getContentPane().add(btnNewPassword);
		
		JLabel lblLogin = new JLabel("Login");
		lblLogin.setFont(new Font("Tahoma", Font.BOLD, 24));
		lblLogin.setBounds(73, 49, 83, 40);
		frame.getContentPane().add(lblLogin);
		
		JLabel lblEmailLogin = new JLabel("E-Mail\r\n");
		lblEmailLogin.setBounds(73, 132, 65, 14);
		frame.getContentPane().add(lblEmailLogin);
		
		JLabel lblPasswordLogin = new JLabel("Password");
		lblPasswordLogin.setBounds(73, 161, 65, 14);
		frame.getContentPane().add(lblPasswordLogin);
		
		JLabel lblRegister = new JLabel("Register\r\n");
		lblRegister.setFont(new Font("Tahoma", Font.BOLD, 24));
		lblRegister.setBounds(365, 49, 126, 40);
		frame.getContentPane().add(lblRegister);
		
		JLabel lblName = new JLabel("Name");
		lblName.setBounds(365, 132, 67, 14);
		frame.getContentPane().add(lblName);
		
		JLabel lblSurname = new JLabel("Surname");
		lblSurname.setBounds(365, 161, 67, 14);
		frame.getContentPane().add(lblSurname);
		
		JLabel lblEmailRegister = new JLabel("E-Mail");
		lblEmailRegister.setBounds(365, 186, 67, 14);
		frame.getContentPane().add(lblEmailRegister);
		
		JLabel lblPasswordRegister = new JLabel("Password");
		lblPasswordRegister.setBounds(365, 213, 67, 14);
		frame.getContentPane().add(lblPasswordRegister);
		
		JLabel lblConfirm = new JLabel("Confirm");
		lblConfirm.setBounds(365, 238, 67, 14);
		frame.getContentPane().add(lblConfirm);
		
		textFieldName = new JTextField();
		textFieldName.setColumns(10);
		textFieldName.setBounds(442, 129, 116, 20);
		frame.getContentPane().add(textFieldName);
		
		textFieldSurname = new JTextField();
		textFieldSurname.setColumns(10);
		textFieldSurname.setBounds(442, 158, 116, 20);
		frame.getContentPane().add(textFieldSurname);
		
		textFieldRegisterEmail = new JTextField();
		textFieldRegisterEmail.setColumns(10);
		textFieldRegisterEmail.setBounds(442, 183, 116, 20);
		frame.getContentPane().add(textFieldRegisterEmail);
		
		textField_EMailLogin = new JTextField();
		textField_EMailLogin.setColumns(10);
		textField_EMailLogin.setBounds(150, 129, 116, 20);
		frame.getContentPane().add(textField_EMailLogin);
		
		JButton btnRegister = new JButton("Register\r\n");
		btnRegister.setBounds(365, 279, 93, 23);
		frame.getContentPane().add(btnRegister);
		
		passwordFieldLogin = new JPasswordField();
		passwordFieldLogin.setBounds(150, 158, 116, 20);
		frame.getContentPane().add(passwordFieldLogin);
		
		passwordFieldRegister = new JPasswordField();
		passwordFieldRegister.setBounds(442, 210, 116, 20);
		frame.getContentPane().add(passwordFieldRegister);
		
		passwordFieldConfirm = new JPasswordField();
		passwordFieldConfirm.setBounds(442, 235, 116, 20);
		frame.getContentPane().add(passwordFieldConfirm);
	}
}
